﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Software.Stone;

namespace NFLog
{
	static class Program
	{
		static bool m_SilentMode = false;

		/// <summary>
		/// 任务栏图标静默标记
		/// </summary>
		static public bool SilentMode
		{
			get
			{
				return m_SilentMode;
			}
			set
			{
				m_SilentMode = value;
			}
		}

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main()
		{
#if !CUSTOM
			SilentMode = CommandLine.NotContainOf("/a");
			if (SilentMode && ProcessChecker.IsExist("NFLog"))
				return;
#endif

			Tracker.Load();
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new FormNFLog());
		}
	}
}